home *** CD-ROM | disk | FTP | other *** search
MacBinary | 2002-03-15 | 9.3 KB | [TEXT/Pyth] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, Fri Mar 15 11:28:02 2002, modified Fri Mar 15 11:28:02 2002, creator 'Pyth', type ASCII, 8838 bytes "LineCluster.py" , at 0x2306 286 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| dearkID
| deark: macbinary
| default
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [Pyth] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0e 4c 69 6e 65 43 6c | 75 73 74 65 72 2e 70 79 |..LineCl|uster.py|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 50 79 74 | 68 00 00 00 00 00 00 00 |.TEXTPyt|h.......|
|00000050| 00 00 00 00 00 22 86 00 | 00 01 1e b8 b7 d1 92 b8 |....."..|........|
|00000060| b7 d1 92 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 67 16 00 00 |........|....g...|
|00000080| 69 6d 70 6f 72 74 20 72 | 61 6e 64 6f 6d 2c 20 77 |import r|andom, w|
|00000090| 68 72 61 6e 64 6f 6d 0d | 66 72 6f 6d 20 54 4d 66 |hrandom.|from TMf|
|000000a0| 75 6e 63 74 20 69 6d 70 | 6f 72 74 20 2a 0d 66 72 |unct imp|ort *.fr|
|000000b0| 6f 6d 20 54 4d 63 6c 61 | 73 73 20 69 6d 70 6f 72 |om TMcla|ss impor|
|000000c0| 74 20 54 65 78 74 75 72 | 65 4f 70 73 0d 0d 69 6d |t Textur|eOps..im|
|000000d0| 70 6f 72 74 20 53 43 0d | 23 23 23 20 63 72 65 61 |port SC.|### crea|
|000000e0| 74 65 20 64 75 70 6c 69 | 63 61 74 65 20 6f 66 20 |te dupli|cate of |
|000000f0| 73 63 20 63 6c 61 73 73 | 5f 3a 0d 53 63 20 3d 20 |sc class|_:.Sc = |
|00000100| 53 43 2e 73 63 28 29 0d | 0d 63 6c 61 73 73 20 4c |SC.sc().|.class L|
|00000110| 69 6e 65 43 6c 75 73 74 | 65 72 28 54 65 78 74 75 |ineClust|er(Textu|
|00000120| 72 65 4f 70 73 29 3a 20 | 23 2f 2a 20 74 65 73 74 |reOps): |#/* test|
|00000130| 49 44 20 3d 20 31 20 2a | 2f 0d 20 20 20 27 61 74 |ID = 1 *|/. 'at|
|00000140| 68 65 6e 61 43 4c 20 6e | 61 74 69 76 65 27 0d 20 |henaCL n|ative'. |
|00000150| 20 20 74 65 78 74 49 44 | 20 3d 20 27 4c 69 6e 65 | textID| = 'Line|
|00000160| 43 6c 75 73 74 65 72 27 | 0d 20 20 20 64 65 66 20 |Cluster'|. def |
|00000170| 5f 5f 69 6e 69 74 5f 5f | 28 73 65 6c 66 29 3a 0d |__init__|(self):.|
|00000180| 20 20 20 20 20 20 73 65 | 6c 66 2e 74 65 78 74 49 | se|lf.textI|
|00000190| 44 20 3d 20 27 4c 69 6e | 65 43 6c 75 73 74 65 72 |D = 'Lin|eCluster|
|000001a0| 27 0d 0d 20 20 20 64 65 | 66 20 73 63 6f 72 65 28 |'.. de|f score(|
|000001b0| 73 65 6c 66 29 3a 0d 20 | 20 20 20 20 20 27 27 27 |self):. | '''|
|000001c0| 5c 0d 54 68 69 73 20 54 | 65 78 74 75 72 65 4d 6f |\.This T|extureMo|
|000001d0| 64 75 6c 65 20 64 69 76 | 69 64 65 73 20 74 68 65 |dule div|ides the|
|000001e0| 20 64 75 72 61 74 69 6f | 6e 20 62 79 20 74 68 65 | duratio|n by the|
|000001f0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 73 65 74 73 20 | number |of sets |
|00000200| 69 6e 20 74 68 65 20 70 | 61 74 68 3a 20 65 61 63 |in the p|ath: eac|
|00000210| 68 20 70 61 72 74 69 74 | 69 6f 6e 20 5c 0d 69 73 |h partit|ion \.is|
|00000220| 20 61 73 73 69 67 6e 65 | 64 20 61 20 73 69 6e 67 | assigne|d a sing|
|00000230| 6c 65 20 73 65 74 2e 20 | 54 68 69 73 20 54 65 78 |le set. |This Tex|
|00000240| 74 75 72 65 4d 6f 64 75 | 6c 65 20 70 65 72 66 6f |tureModu|le perfo|
|00000250| 72 6d 73 20 74 68 65 20 | 73 65 74 20 73 69 6d 75 |rms the |set simu|
|00000260| 6c 74 61 6e 65 6f 75 73 | 6c 79 20 61 73 20 61 20 |ltaneous|ly as a |
|00000270| 63 68 6f 72 64 20 63 6c | 75 73 74 65 72 2e 0d 0d |chord cl|uster...|
|00000280| 28 72 29 68 79 74 68 6d | 20 20 20 20 20 20 20 27 |(r)hythm| '|
|00000290| 62 69 6e 61 72 79 41 63 | 63 65 6e 74 27 2c 20 27 |binaryAc|cent', '|
|000002a0| 67 61 52 68 79 74 68 6d | 27 2c 20 27 6c 6f 6f 70 |gaRhythm|', 'loop|
|000002b0| 27 0d 6c 6f 63 61 6c 20 | 28 66 29 69 65 6c 64 20 |'.local |(f)ield |
|000002c0| 20 27 62 61 73 6b 65 74 | 47 65 6e 27 2c 20 27 63 | 'basket|Gen', 'c|
|000002d0| 79 63 6c 69 63 47 65 6e | 27 2c 20 27 63 6f 6e 73 |yclicGen|', 'cons|
|000002e0| 74 61 6e 74 27 0d 6c 6f | 63 61 6c 20 28 6f 29 63 |tant'.lo|cal (o)c|
|000002f0| 74 20 20 20 20 27 62 61 | 73 6b 65 74 47 65 6e 27 |t 'ba|sketGen'|
|00000300| 2c 20 27 63 79 63 6c 69 | 63 47 65 6e 27 2c 20 27 |, 'cycli|cGen', '|
|00000310| 63 6f 6e 73 74 61 6e 74 | 27 0d 28 61 29 6d 70 6c |constant|'.(a)mpl|
|00000320| 69 74 75 64 65 20 20 20 | 20 27 62 61 73 6b 65 74 |itude | 'basket|
|00000330| 47 65 6e 27 2c 20 27 63 | 79 63 6c 69 63 47 65 6e |Gen', 'c|yclicGen|
|00000340| 27 2c 20 27 63 6f 6e 73 | 74 61 6e 74 27 0d 70 61 |', 'cons|tant'.pa|
|00000350| 28 6e 29 69 6e 67 20 20 | 20 20 20 20 20 27 62 61 |(n)ing | 'ba|
|00000360| 73 6b 65 74 47 65 6e 27 | 2c 20 27 63 79 63 6c 69 |sketGen'|, 'cycli|
|00000370| 63 47 65 6e 27 2c 20 27 | 63 6f 6e 73 74 61 6e 74 |cGen', '|constant|
|00000380| 27 0d 61 75 28 78 29 69 | 6c 6c 61 72 79 20 20 20 |'.au(x)i|llary |
|00000390| 20 27 62 61 73 6b 65 74 | 47 65 6e 27 2c 20 27 63 | 'basket|Gen', 'c|
|000003a0| 79 63 6c 69 63 47 65 6e | 27 2c 20 27 63 6f 6e 73 |yclicGen|', 'cons|
|000003b0| 74 61 6e 74 27 2c 20 0d | 20 20 20 20 20 20 20 20 |tant', .| |
|000003c0| 20 20 20 20 20 20 20 27 | 73 61 6d 70 6c 65 53 65 | '|sampleSe|
|000003d0| 6c 65 63 74 27 2c 20 27 | 61 6e 61 6c 79 73 69 73 |lect', '|analysis|
|000003e0| 53 65 6c 65 63 74 27 0d | 74 28 65 29 78 74 75 72 |Select'.|t(e)xtur|
|000003f0| 65 20 20 20 20 20 20 5b | 6c 69 73 74 5d 2c 20 64 |e [|list], d|
|00000400| 65 6c 61 79 0d 20 20 20 | 6c 69 73 74 20 69 73 20 |elay. |list is |
|00000410| 61 20 63 6f 6c 6c 65 63 | 74 69 6f 6e 20 6f 66 20 |a collec|tion of |
|00000420| 74 72 61 6e 73 70 6f 73 | 69 74 69 6f 6e 73 20 61 |transpos|itions a|
|00000430| 62 6f 76 65 20 62 61 73 | 65 20 6e 6f 74 65 0d 20 |bove bas|e note. |
|00000440| 20 20 64 65 6c 61 79 20 | 69 73 20 67 61 70 20 74 | delay |is gap t|
|00000450| 69 6c 6c 20 61 72 74 69 | 63 75 6c 61 74 69 6f 6e |ill arti|culation|
|00000460| 3a 20 28 2e 30 30 31 20 | 74 6f 20 2e 38 29 0d 27 |: (.001 |to .8).'|
|00000470| 27 27 20 0d 0d 20 20 20 | 20 20 20 23 20 74 65 78 |'' .. | # tex|
|00000480| 74 75 72 65 2d 77 69 64 | 65 20 50 41 54 48 2f 50 |ture-wid|e PATH/P|
|00000490| 49 54 43 48 20 65 6c 65 | 6d 65 6e 74 73 0d 20 20 |ITCH ele|ments. |
|000004a0| 20 20 20 20 70 61 74 68 | 20 20 20 20 20 20 20 20 | path| |
|000004b0| 20 20 20 3d 20 73 65 6c | 66 2e 70 61 74 68 2e 73 | = sel|f.path.s|
|000004c0| 63 50 61 74 68 20 20 20 | 23 70 69 74 63 68 65 73 |cPath |#pitches|
|000004d0| 20 64 6f 20 6e 6f 74 20 | 63 6f 6d 65 20 66 72 6f | do not |come fro|
|000004e0| 6d 20 68 65 72 65 2c 20 | 62 75 74 20 66 72 6f 6d |m here, |but from|
|000004f0| 20 62 65 6c 6f 77 0d 20 | 20 20 20 20 20 6c 6f 63 | below. | loc|
|00000500| 61 6c 54 75 6e 65 44 69 | 63 74 20 20 3d 20 73 65 |alTuneDi|ct = se|
|00000510| 6c 66 2e 74 65 6d 70 65 | 72 6d 65 6e 74 44 69 63 |lf.tempe|rmentDic|
|00000520| 74 0d 20 20 20 20 20 20 | 23 69 6e 68 65 72 69 74 |t. |#inherit|
|00000530| 65 64 20 66 72 6f 6d 20 | 54 4d 63 6c 61 73 73 0d |ed from |TMclass.|
|00000540| 20 20 20 20 20 20 23 73 | 65 6c 66 2e 70 6d 74 72 | #s|elf.pmtr|
|00000550| 4f 62 6a 44 69 63 74 20 | 3d 20 7b 7d 20 23 20 77 |ObjDict |= {} # w|
|00000560| 69 6c 6c 20 68 6f 6c 64 | 20 61 6c 6c 20 70 6d 74 |ill hold| all pmt|
|00000570| 72 20 6f 62 6a 65 63 74 | 73 0d 20 20 20 20 20 20 |r object|s. |
|00000580| 23 73 65 6c 66 2e 70 6d | 74 72 51 44 69 63 74 20 |#self.pm|trQDict |
|00000590| 20 20 3d 20 7b 7d 20 23 | 20 77 69 6c 6c 20 68 6f | = {} #| will ho|
|000005a0| 6c 64 20 61 6c 6c 20 70 | 6d 74 72 20 6f 62 6a 65 |ld all p|mtr obje|
|000005b0| 63 74 73 20 20 20 20 20 | 20 23 73 65 6c 66 2e 72 |cts | #self.r|
|000005c0| 68 79 74 68 6d 4f 62 6a | 20 69 6e 68 65 72 69 74 |hythmObj| inherit|
|000005d0| 65 64 20 66 72 6f 6d 20 | 54 4d 63 6c 61 73 73 0d |ed from |TMclass.|
|000005e0| 20 20 20 20 20 20 23 73 | 65 6c 66 2e 72 68 79 74 | #s|elf.rhyt|
|000005f0| 68 6d 51 20 69 6e 68 65 | 72 69 74 65 64 20 66 72 |hmQ inhe|rited fr|
|00000600| 6f 6d 20 54 4d 63 6c 61 | 73 73 0d 0d 20 20 20 20 |om TMcla|ss.. |
|00000610| 20 20 23 20 74 65 78 74 | 75 72 65 2d 77 69 64 65 | # text|ure-wide|
|00000620| 20 74 69 6d 65 20 65 6c | 65 6d 65 6e 74 73 0d 20 | time el|ements. |
|00000630| 20 20 20 20 20 69 6e 73 | 74 20 3d 20 73 65 6c 66 | ins|t = self|
|00000640| 2e 70 6d 74 72 4f 62 6a | 44 69 63 74 5b 27 69 6e |.pmtrObj|Dict['in|
|00000650| 73 74 27 5d 2e 73 74 61 | 74 69 63 49 6e 73 74 28 |st'].sta|ticInst(|
|00000660| 29 0d 20 20 20 20 20 20 | 73 74 61 72 74 5f 74 2c |). |start_t,|
|00000670| 20 65 6e 64 5f 74 20 3d | 20 73 65 6c 66 2e 70 6d | end_t =| self.pm|
|00000680| 74 72 4f 62 6a 44 69 63 | 74 5b 27 74 52 61 6e 67 |trObjDic|t['tRang|
|00000690| 65 27 5d 2e 73 74 61 74 | 69 63 52 61 6e 67 65 28 |e'].stat|icRange(|
|000006a0| 29 0d 20 20 20 20 20 20 | 63 75 72 72 65 6e 74 5f |). |current_|
|000006b0| 74 20 20 20 3d 20 73 74 | 61 72 74 5f 74 0d 0d 20 |t = st|art_t.. |
|000006c0| 20 20 20 20 20 6c 5f 70 | 61 74 68 20 20 20 20 20 | l_p|ath |
|000006d0| 20 3d 20 6c 65 6e 28 70 | 61 74 68 29 20 20 20 20 | = len(p|ath) |
|000006e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000006f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 23 65 61 | | #ea|
|00000700| 63 68 20 63 68 6f 72 64 | 20 69 73 20 67 69 76 65 |ch chord| is give|
|00000710| 6e 20 61 6e 20 65 71 75 | 61 6c 20 70 6f 72 70 6f |n an equ|al porpo|
|00000720| 72 74 69 6f 6e 20 6f 66 | 20 64 75 72 61 74 69 6f |rtion of| duratio|
|00000730| 6e 0d 20 20 20 20 20 20 | 74 5f 70 65 72 5f 73 65 |n. |t_per_se|
|00000740| 74 20 20 20 3d 20 28 65 | 6e 64 5f 74 20 2d 20 73 |t = (e|nd_t - s|
|00000750| 74 61 72 74 5f 74 29 20 | 2f 20 66 6c 6f 61 74 28 |tart_t) |/ float(|
|00000760| 6c 5f 70 61 74 68 29 20 | 20 20 0d 20 20 20 20 20 |l_path) | . |
|00000770| 20 23 2f 2a 20 74 65 78 | 74 75 72 65 2d 77 69 64 | #/* tex|ture-wid|
|00000780| 65 20 54 45 58 54 55 52 | 45 20 28 73 65 6c 66 2e |e TEXTUR|E (self.|
|00000790| 74 65 78 74 51 20 61 6d | 64 29 6f 70 74 69 6f 6e |textQ am|d)option|
|000007a0| 73 20 2a 2f 20 0d 20 20 | 20 20 20 20 74 65 78 74 |s */ . | text|
|000007b0| 5f 6c 69 73 74 20 20 20 | 3d 20 73 65 6c 66 2e 74 |_list |= self.t|
|000007c0| 65 78 74 51 5b 30 5d 20 | 20 20 20 20 20 20 20 20 |extQ[0] | |
|000007d0| 20 20 20 20 20 20 23 75 | 73 65 64 20 66 6f 72 20 | #u|sed for |
|000007e0| 6f 70 74 69 6f 6e 61 6c | 20 70 61 72 61 6c 6c 65 |optional| paralle|
|000007f0| 6c 20 76 6f 69 63 65 73 | 0d 20 20 20 20 20 20 74 |l voices|. t|
|00000800| 65 78 74 5f 64 65 6c 61 | 79 20 20 3d 20 73 65 6c |ext_dela|y = sel|
|00000810| 66 2e 74 65 78 74 51 5b | 31 5d 20 20 20 20 20 20 |f.textQ[|1] |
|00000820| 20 20 20 20 20 20 20 20 | 20 23 64 65 6c 61 79 20 | | #delay |
|00000830| 62 65 74 77 65 65 6e 20 | 65 61 63 68 20 6e 6f 74 |between |each not|
|00000840| 65 20 28 73 29 20 5b 2e | 30 30 31 20 67 6f 6f 64 |e (s) [.|001 good|
|00000850| 5d 0d 0d 0d 0d 20 20 20 | 20 20 20 23 20 43 48 4f |].... | # CHO|
|00000860| 52 44 20 69 6e 20 50 41 | 54 48 0d 20 20 20 20 20 |RD in PA|TH. |
|00000870| 20 23 23 23 20 65 61 63 | 68 20 63 68 6f 72 64 20 | ### eac|h chord |
|00000880| 69 73 20 64 69 76 69 64 | 65 64 20 65 71 75 61 6c |is divid|ed equal|
|00000890| 20 62 65 74 77 65 65 6e | 20 66 75 6c 6c 20 64 75 | between| full du|
|000008a0| 72 61 74 69 6f 6e 2c 20 | 73 6f 20 65 61 63 68 0d |ration, |so each.|
|000008b0| 20 20 20 20 20 20 23 23 | 23 20 63 68 6f 72 64 20 | ##|# chord |
|000008c0| 69 6e 20 74 68 65 20 70 | 61 74 68 20 6d 75 73 74 |in the p|ath must|
|000008d0| 20 62 65 20 65 78 65 63 | 75 74 65 64 20 61 73 20 | be exec|uted as |
|000008e0| 61 20 66 72 61 63 74 69 | 6f 6e 20 6f 66 20 77 68 |a fracti|on of wh|
|000008f0| 6f 6c 65 20 64 75 72 61 | 74 69 6f 6e 0d 0d 20 20 |ole dura|tion.. |
|00000900| 20 20 20 20 23 20 63 72 | 65 61 74 65 20 61 20 6c | # cr|eate a l|
|00000910| 69 73 74 20 6f 66 20 63 | 68 6f 72 64 73 20 66 72 |ist of c|hords fr|
|00000920| 6f 6d 20 74 68 65 20 61 | 70 70 72 6f 70 72 69 61 |om the a|ppropria|
|00000930| 74 65 20 70 69 74 63 68 | 20 6d 6f 64 65 0d 20 20 |te pitch| mode. |
|00000940| 20 20 20 20 6d 61 73 74 | 65 72 43 68 6f 72 64 4c | mast|erChordL|
|00000950| 69 73 74 20 3d 20 5b 5d | 0d 20 20 20 20 20 20 69 |ist = []|. i|
|00000960| 66 20 20 20 73 65 6c 66 | 2e 70 69 74 63 68 4d 6f |f self|.pitchMo|
|00000970| 64 65 20 3d 3d 20 27 73 | 63 27 3a 0d 20 20 20 20 |de == 's|c':. |
|00000980| 20 20 20 20 20 66 6f 72 | 20 73 63 49 64 54 75 70 | for| scIdTup|
|00000990| 6c 65 20 69 6e 20 73 65 | 6c 66 2e 70 61 74 68 2e |le in se|lf.path.|
|000009a0| 73 63 50 61 74 68 3a 0d | 20 20 20 20 20 20 20 20 |scPath:.| |
|000009b0| 20 20 20 20 6d 61 73 74 | 65 72 43 68 6f 72 64 4c | mast|erChordL|
|000009c0| 69 73 74 2e 61 70 70 65 | 6e 64 28 53 63 2e 70 63 |ist.appe|nd(Sc.pc|
|000009d0| 73 28 73 63 49 64 54 75 | 70 6c 65 29 29 0d 20 20 |s(scIdTu|ple)). |
|000009e0| 20 20 20 20 65 6c 69 66 | 20 73 65 6c 66 2e 70 69 | elif| self.pi|
|000009f0| 74 63 68 4d 6f 64 65 20 | 3d 3d 20 27 70 63 73 27 |tchMode |== 'pcs'|
|00000a00| 3a 0d 20 20 20 20 20 20 | 20 20 20 6d 61 73 74 65 |:. | maste|
|00000a10| 72 43 68 6f 72 64 4c 69 | 73 74 20 3d 20 73 65 6c |rChordLi|st = sel|
|00000a20| 66 2e 70 61 74 68 2e 70 | 63 73 50 61 74 68 20 0d |f.path.p|csPath .|
|00000a30| 20 20 20 20 20 20 65 6c | 69 66 20 73 65 6c 66 2e | el|if self.|
|00000a40| 70 69 74 63 68 4d 6f 64 | 65 20 3d 3d 20 27 75 73 |pitchMod|e == 'us|
|00000a50| 72 27 3a 0d 20 20 20 20 | 20 20 20 20 20 6d 61 73 |r':. | mas|
|00000a60| 74 65 72 43 68 6f 72 64 | 4c 69 73 74 20 3d 20 73 |terChord|List = s|
|00000a70| 65 6c 66 2e 70 61 74 68 | 2e 75 73 72 50 61 74 68 |elf.path|.usrPath|
|00000a80| 20 0d 0d 20 20 20 20 20 | 20 66 6f 72 20 73 6f 75 | .. | for sou|
|00000a90| 72 63 65 43 68 6f 72 64 | 20 69 6e 20 6d 61 73 74 |rceChord| in mast|
|00000aa0| 65 72 43 68 6f 72 64 4c | 69 73 74 3a 0d 20 20 20 |erChordL|ist:. |
|00000ab0| 20 20 20 20 20 20 23 20 | 50 49 54 43 48 46 49 45 | # |PITCHFIE|
|00000ac0| 4c 44 2c 20 43 48 4f 52 | 44 20 2f 49 4e 56 45 52 |LD, CHOR|D /INVER|
|00000ad0| 53 49 4f 4e 3a 0d 20 20 | 20 20 20 20 20 20 20 69 |SION:. | i|
|00000ae0| 66 20 73 65 6c 66 2e 70 | 6d 74 72 4f 62 6a 44 69 |f self.p|mtrObjDi|
|00000af0| 63 74 5b 27 66 69 65 6c | 64 51 27 5d 2e 74 79 70 |ct['fiel|dQ'].typ|
|00000b00| 65 20 3d 3d 20 27 63 79 | 63 6c 69 63 47 65 6e 27 |e == 'cy|clicGen'|
|00000b10| 3a 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 63 75 |:. | cu|
|00000b20| 72 72 65 6e 74 5f 74 72 | 61 6e 73 20 3d 20 73 65 |rrent_tr|ans = se|
|00000b30| 6c 66 2e 70 6d 74 72 4f | 62 6a 44 69 63 74 5b 27 |lf.pmtrO|bjDict['|
|00000b40| 66 69 65 6c 64 51 27 5d | 2e 63 79 63 6c 69 63 47 |fieldQ']|.cyclicG|
|00000b50| 65 6e 28 29 0d 20 20 20 | 20 20 20 20 20 20 23 20 |en(). | # |
|00000b60| 6e 6f 20 73 61 6d 70 6c | 65 53 65 6c 65 63 74 20 |no sampl|eSelect |
|00000b70| 61 6c 6c 6f 77 65 64 20 | 68 65 72 65 0d 20 20 20 |allowed |here. |
|00000b80| 20 20 20 20 20 20 65 6c | 69 66 20 73 65 6c 66 2e | el|if self.|
|00000b90| 70 6d 74 72 4f 62 6a 44 | 69 63 74 5b 27 66 69 65 |pmtrObjD|ict['fie|
|00000ba0| 6c 64 51 27 5d 2e 74 79 | 70 65 20 3d 3d 20 27 63 |ldQ'].ty|pe == 'c|
|00000bb0| 6f 6e 73 74 61 6e 74 27 | 3a 0d 20 20 20 20 20 20 |onstant'|:. |
|00000bc0| 20 20 20 20 20 20 63 75 | 72 72 65 6e 74 5f 74 72 | cu|rrent_tr|
|00000bd0| 61 6e 73 20 3d 20 73 65 | 6c 66 2e 70 6d 74 72 4f |ans = se|lf.pmtrO|
|00000be0| 62 6a 44 69 63 74 5b 27 | 66 69 65 6c 64 51 27 5d |bjDict['|fieldQ']|
|00000bf0| 2e 63 6f 6e 73 74 61 6e | 74 28 29 0d 20 20 20 20 |.constan|t(). |
|00000c00| 20 20 20 20 20 65 6c 69 | 66 20 73 65 6c 66 2e 70 | eli|f self.p|
|00000c10| 6d 74 72 4f 62 6a 44 69 | 63 74 5b 27 66 69 65 6c |mtrObjDi|ct['fiel|
|00000c20| 64 51 27 5d 2e 74 79 70 | 65 20 3d 3d 20 27 62 61 |dQ'].typ|e == 'ba|
|00000c30| 73 6b 65 74 47 65 6e 27 | 3a 0d 20 20 20 20 20 20 |sketGen'|:. |
|00000c40| 20 20 20 20 20 20 63 75 | 72 72 65 6e 74 5f 74 72 | cu|rrent_tr|
|00000c50| 61 6e 73 20 3d 20 73 65 | 6c 66 2e 70 6d 74 72 4f |ans = se|lf.pmtrO|
|00000c60| 62 6a 44 69 63 74 5b 27 | 66 69 65 6c 64 51 27 5d |bjDict['|fieldQ']|
|00000c70| 2e 62 61 73 6b 65 74 47 | 65 6e 28 29 0d 20 20 20 |.basketG|en(). |
|00000c80| 20 20 20 20 20 20 23 63 | 75 72 72 65 6e 74 5f 74 | #c|urrent_t|
|00000c90| 72 61 6e 73 2c 20 66 69 | 65 6c 64 5f 69 20 3d 20 |rans, fi|eld_i = |
|00000ca0| 62 61 73 6b 65 74 5f 67 | 65 6e 28 66 69 65 6c 64 |basket_g|en(field|
|00000cb0| 5f 63 6f 6e 74 72 6f 6c | 2c 20 66 69 65 6c 64 5f |_control|, field_|
|00000cc0| 6c 69 73 74 2c 20 66 69 | 65 6c 64 5f 69 29 0d 20 |list, fi|eld_i). |
|00000cd0| 20 20 20 20 20 20 20 20 | 23 23 23 20 6d 61 6b 65 | |### make|
|00000ce0| 20 63 75 72 72 65 6e 74 | 20 63 68 6f 72 64 20 61 | current| chord a|
|00000cf0| 20 6c 69 73 74 2c 20 4e | 4f 54 20 61 20 74 75 70 | list, N|OT a tup|
|00000d00| 6c 65 0d 0d 20 20 20 20 | 20 20 20 20 20 23 2f 2a |le.. | #/*|
|00000d10| 20 50 49 54 43 48 20 69 | 6e 20 43 48 4f 52 44 20 | PITCH i|n CHORD |
|00000d20| 2a 2f 0d 20 20 20 20 20 | 20 20 20 20 63 75 72 72 |*/. | curr|
|00000d30| 65 6e 74 5f 63 68 6f 72 | 64 20 3d 20 6c 69 73 74 |ent_chor|d = list|
|00000d40| 28 73 6f 75 72 63 65 43 | 68 6f 72 64 29 0d 20 20 |(sourceC|hord). |
|00000d50| 20 20 20 20 20 20 20 63 | 68 6f 72 64 5f 6c 65 6e | c|hord_len|
|00000d60| 67 74 68 20 3d 20 6c 65 | 6e 28 63 75 72 72 65 6e |gth = le|n(curren|
|00000d70| 74 5f 63 68 6f 72 64 29 | 20 20 20 20 20 20 23 74 |t_chord)| #t|
|00000d80| 68 69 73 20 73 68 6f 75 | 6c 64 20 65 71 75 61 6c |his shou|ld equal|
|00000d90| 20 6c 65 6e 28 63 75 72 | 72 65 6e 74 5f 63 68 6f | len(cur|rent_cho|
|00000da0| 72 64 29 0d 20 20 20 20 | 20 20 20 20 20 73 65 74 |rd). | set|
|00000db0| 5f 74 20 3d 20 30 2e 30 | 30 30 0d 20 20 20 20 20 |_t = 0.0|00. |
|00000dc0| 20 20 20 20 0d 20 20 20 | 20 20 20 20 20 20 23 23 | . | ##|
|00000dd0| 23 20 74 68 69 73 20 76 | 61 6c 75 65 20 68 6f 6c |# this v|alue hol|
|00000de0| 64 73 20 74 68 65 20 6c | 69 73 74 20 6f 66 20 70 |ds the l|ist of p|
|00000df0| 63 73 20 66 72 6f 6d 20 | 63 75 72 72 65 6e 74 5f |cs from |current_|
|00000e00| 63 68 6f 72 64 20 61 6c | 72 65 61 64 79 20 75 73 |chord al|ready us|
|00000e10| 65 64 2f 62 65 69 6e 67 | 20 75 73 65 64 21 21 0d |ed/being| used!!.|
|00000e20| 20 20 20 20 20 20 20 20 | 20 70 63 5f 74 65 73 74 | | pc_test|
|00000e30| 20 3d 20 5b 5d 0d 20 20 | 20 20 20 20 20 20 20 77 | = []. | w|
|00000e40| 68 69 6c 65 20 31 3a 0d | 20 20 20 20 20 20 20 20 |hile 1:.| |
|00000e50| 20 20 20 20 23 20 63 68 | 6f 6f 73 65 20 50 43 20 | # ch|oose PC |
|00000e60| 66 72 6f 6d 20 43 48 4f | 52 44 20 0d 20 20 20 20 |from CHO|RD . |
|00000e70| 20 20 20 20 20 20 20 20 | 70 63 5f 74 65 73 74 2c | |pc_test,|
|00000e80| 20 70 63 5f 69 20 3d 20 | 75 72 6e 5f 66 69 6c 74 | pc_i = |urn_filt|
|00000e90| 65 72 28 70 63 5f 74 65 | 73 74 2c 20 63 68 6f 72 |er(pc_te|st, chor|
|00000ea0| 64 5f 6c 65 6e 67 74 68 | 29 20 20 23 66 69 6e 64 |d_length|) #find|
|00000eb0| 20 69 6e 64 65 78 20 74 | 6f 20 75 73 65 0d 20 20 | index t|o use. |
|00000ec0| 20 20 20 20 20 20 20 20 | 20 20 70 63 20 3d 20 63 | | pc = c|
|00000ed0| 75 72 72 65 6e 74 5f 63 | 68 6f 72 64 5b 70 63 5f |urrent_c|hord[pc_|
|00000ee0| 69 5d 20 20 20 20 20 20 | 20 20 23 20 74 68 69 73 |i] | # this|
|00000ef0| 20 70 63 20 77 69 6c 6c | 20 62 65 20 75 73 65 64 | pc will| be used|
|00000f00| 20 61 73 20 52 4f 4f 54 | 28 6c 6f 77 65 73 74 20 | as ROOT|(lowest |
|00000f10| 6e 6f 74 65 29 20 6f 66 | 20 63 68 6f 72 64 20 28 |note) of| chord (|
|00000f20| 68 65 72 65 2c 20 75 6e | 74 72 61 6e 73 70 6f 73 |here, un|transpos|
|00000f30| 65 64 29 0d 0d 20 20 20 | 20 20 20 20 20 20 20 20 |ed).. | |
|00000f40| 20 23 20 63 68 6f 6f 73 | 65 20 4f 43 54 41 56 45 | # choos|e OCTAVE|
|00000f50| 20 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 69 66 | . | if|
|00000f60| 20 73 65 6c 66 2e 70 6d | 74 72 4f 62 6a 44 69 63 | self.pm|trObjDic|
|00000f70| 74 5b 27 6f 63 74 51 27 | 5d 2e 74 79 70 65 20 3d |t['octQ'|].type =|
|00000f80| 3d 20 27 63 79 63 6c 69 | 63 47 65 6e 27 3a 0d 20 |= 'cycli|cGen':. |
|00000f90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 63 75 | | cu|
|00000fa0| 72 72 65 6e 74 5f 6f 63 | 74 61 76 65 20 3d 20 73 |rrent_oc|tave = s|
|00000fb0| 65 6c 66 2e 70 6d 74 72 | 4f 62 6a 44 69 63 74 5b |elf.pmtr|ObjDict[|
|00000fc0| 27 6f 63 74 51 27 5d 2e | 63 79 63 6c 69 63 47 65 |'octQ'].|cyclicGe|
|00000fd0| 6e 28 29 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |n(). | |
|00000fe0| 23 20 6e 6f 20 73 61 6d | 70 6c 65 53 65 6c 65 63 |# no sam|pleSelec|
|00000ff0| 74 20 61 6c 6c 6f 77 65 | 64 20 68 65 72 65 0d 20 |t allowe|d here. |
|00001000| 20 20 20 20 20 20 20 20 | 20 20 20 65 6c 69 66 20 | | elif |
|00001010| 73 65 6c 66 2e 70 6d 74 | 72 4f 62 6a 44 69 63 74 |self.pmt|rObjDict|
|00001020| 5b 27 6f 63 74 51 27 5d | 2e 74 79 70 65 20 3d 3d |['octQ']|.type ==|
|00001030| 20 27 63 6f 6e 73 74 61 | 6e 74 27 3a 0d 20 20 20 | 'consta|nt':. |
|00001040| 20 20 20 20 20 20 20 20 | 20 20 20 20 63 75 72 72 | | curr|
|00001050| 65 6e 74 5f 6f 63 74 61 | 76 65 20 3d 20 73 65 6c |ent_octa|ve = sel|
|00001060| 66 2e 70 6d 74 72 4f 62 | 6a 44 69 63 74 5b 27 6f |f.pmtrOb|jDict['o|
|00001070| 63 74 51 27 5d 2e 63 6f | 6e 73 74 61 6e 74 28 29 |ctQ'].co|nstant()|
|00001080| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 65 6c 69 |. | eli|
|00001090| 66 20 73 65 6c 66 2e 70 | 6d 74 72 4f 62 6a 44 69 |f self.p|mtrObjDi|
|000010a0| 63 74 5b 27 6f 63 74 51 | 27 5d 2e 74 79 70 65 20 |ct['octQ|'].type |
|000010b0| 3d 3d 20 27 62 61 73 6b | 65 74 47 65 6e 27 3a 0d |== 'bask|etGen':.|
|000010c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 63 | | c|
|000010d0| 75 72 72 65 6e 74 5f 6f | 63 74 61 76 65 20 3d 20 |urrent_o|ctave = |
|000010e0| 73 65 6c 66 2e 70 6d 74 | 72 4f 62 6a 44 69 63 74 |self.pmt|rObjDict|
|000010f0| 5b 27 6f 63 74 51 27 5d | 2e 62 61 73 6b 65 74 47 |['octQ']|.basketG|
|00001100| 65 6e 28 29 0d 20 20 20 | 20 20 20 20 20 20 20 20 |en(). | |
|00001110| 20 23 63 75 72 72 65 6e | 74 5f 6f 63 74 61 76 65 | #curren|t_octave|
|00001120| 2c 20 6f 63 74 5f 69 20 | 3d 20 62 61 73 6b 65 74 |, oct_i |= basket|
|00001130| 5f 67 65 6e 28 6f 63 74 | 5f 63 6f 6e 74 72 6f 6c |_gen(oct|_control|
|00001140| 2c 20 6f 63 74 5f 6c 69 | 73 74 2c 20 6f 63 74 5f |, oct_li|st, oct_|
|00001150| 69 29 20 20 23 74 68 69 | 73 20 77 69 6c 6c 20 62 |i) #thi|s will b|
|00001160| 65 20 52 4f 4f 54 20 6f | 63 74 61 76 65 20 20 20 |e ROOT o|ctave |
|00001170| 0d 20 20 20 20 20 20 20 | 20 20 0d 20 20 20 20 20 |. | . |
|00001180| 20 20 20 20 20 20 20 70 | 63 68 5f 63 68 6f 72 64 | p|ch_chord|
|00001190| 20 3d 20 5b 5d 0d 20 20 | 20 20 20 20 20 20 20 20 | = []. | |
|000011a0| 20 20 66 6f 72 20 70 69 | 74 63 68 53 70 61 63 65 | for pi|tchSpace|
|000011b0| 20 69 6e 20 73 6f 75 72 | 63 65 43 68 6f 72 64 3a | in sour|ceChord:|
|000011c0| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|000011d0| 70 63 68 5f 65 6c 65 6d | 65 6e 74 20 3d 20 70 63 |pch_elem|ent = pc|
|000011e0| 54 6f 50 43 48 74 65 6d | 70 65 72 65 64 28 70 69 |ToPCHtem|pered(pi|
|000011f0| 74 63 68 53 70 61 63 65 | 2c 20 63 75 72 72 65 6e |tchSpace|, curren|
|00001200| 74 5f 6f 63 74 61 76 65 | 2c 20 6c 6f 63 61 6c 54 |t_octave|, localT|
|00001210| 75 6e 65 44 69 63 74 29 | 20 23 20 69 6e 20 70 69 |uneDict)| # in pi|
|00001220| 74 63 68 20 73 70 61 63 | 65 0d 20 20 20 20 20 20 |tch spac|e. |
|00001230| 20 20 20 20 20 20 20 20 | 20 70 63 68 5f 65 6c 65 | | pch_ele|
|00001240| 6d 65 6e 74 20 3d 20 74 | 72 61 6e 73 70 6f 73 65 |ment = t|ranspose|
|00001250| 50 43 48 28 70 63 68 5f | 65 6c 65 6d 65 6e 74 2c |PCH(pch_|element,|
|00001260| 20 63 75 72 72 65 6e 74 | 5f 74 72 61 6e 73 29 0d | current|_trans).|
|00001270| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 70 | | p|
|00001280| 63 68 5f 63 68 6f 72 64 | 2e 61 70 70 65 6e 64 28 |ch_chord|.append(|
|00001290| 70 63 68 5f 65 6c 65 6d | 65 6e 74 29 0d 0d 20 20 |pch_elem|ent).. |
|000012a0| 20 20 20 20 20 20 20 20 | 20 20 23 23 23 20 70 63 | | ### pc|
|000012b0| 68 5f 63 68 6f 72 64 20 | 69 73 20 61 20 6c 69 73 |h_chord |is a lis|
|000012c0| 74 20 6f 66 20 50 43 48 | 27 73 20 6e 65 65 64 65 |t of PCH|'s neede|
|000012d0| 64 20 74 6f 20 6d 61 6b | 65 20 63 68 6f 72 64 2c |d to mak|e chord,|
|000012e0| 20 74 72 61 6e 73 20 61 | 6e 64 20 6f 63 74 20 69 | trans a|nd oct i|
|000012f0| 6e 63 6c 75 64 65 64 0d | 0d 20 20 20 20 20 20 20 |ncluded.|. |
|00001300| 20 20 20 20 20 23 20 63 | 68 6f 6f 73 65 20 52 48 | # c|hoose RH|
|00001310| 59 54 48 4d 0d 20 20 20 | 20 20 20 20 20 20 20 20 |YTHM. | |
|00001320| 20 69 66 20 73 65 6c 66 | 2e 72 68 79 74 68 6d 4f | if self|.rhythmO|
|00001330| 62 6a 2e 74 79 70 65 20 | 3d 3d 20 27 62 69 6e 61 |bj.type |== 'bina|
|00001340| 72 79 41 63 63 65 6e 74 | 27 3a 0d 20 20 20 20 20 |ryAccent|':. |
|00001350| 20 20 20 20 20 20 20 20 | 20 20 72 68 79 74 68 6d | | rhythm|
|00001360| 2c 20 74 5f 6f 76 65 72 | 6c 61 70 20 3d 20 73 65 |, t_over|lap = se|
|00001370| 6c 66 2e 72 68 79 74 68 | 6d 4f 62 6a 2e 62 69 6e |lf.rhyth|mObj.bin|
|00001380| 61 72 79 41 63 63 65 6e | 74 28 70 63 20 3d 3d 20 |aryAccen|t(pc == |
|00001390| 63 75 72 72 65 6e 74 5f | 63 68 6f 72 64 5b 30 5d |current_|chord[0]|
|000013a0| 29 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |). | |
|000013b0| 20 6e 6f 74 52 65 73 74 | 20 3d 20 31 20 23 20 6e | notRest| = 1 # n|
|000013c0| 6f 20 72 65 73 74 73 20 | 68 65 72 65 21 0d 20 20 |o rests |here!. |
|000013d0| 20 20 20 20 20 20 20 20 | 20 20 65 6c 69 66 20 73 | | elif s|
|000013e0| 65 6c 66 2e 72 68 79 74 | 68 6d 4f 62 6a 2e 74 79 |elf.rhyt|hmObj.ty|
|000013f0| 70 65 20 3d 3d 20 27 67 | 61 52 68 79 74 68 6d 27 |pe == 'g|aRhythm'|
|00001400| 3a 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |:. | |
|00001410| 20 72 68 79 74 68 6d 2c | 20 74 5f 6f 76 65 72 6c | rhythm,| t_overl|
|00001420| 61 70 2c 20 6e 6f 74 52 | 65 73 74 20 3d 20 73 65 |ap, notR|est = se|
|00001430| 6c 66 2e 72 68 79 74 68 | 6d 4f 62 6a 2e 67 61 52 |lf.rhyth|mObj.gaR|
|00001440| 68 79 74 68 6d 28 29 0d | 20 20 20 20 20 20 20 20 |hythm().| |
|00001450| 20 20 20 20 65 6c 69 66 | 20 73 65 6c 66 2e 72 68 | elif| self.rh|
|00001460| 79 74 68 6d 4f 62 6a 2e | 74 79 70 65 20 3d 3d 20 |ythmObj.|type == |
|00001470| 27 6c 6f 6f 70 27 3a 0d | 20 20 20 20 20 20 20 20 |'loop':.| |
|00001480| 20 20 20 20 20 20 20 72 | 68 79 74 68 6d 2c 20 74 | r|hythm, t|
|00001490| 5f 6f 76 65 72 6c 61 70 | 2c 20 6e 6f 74 52 65 73 |_overlap|, notRes|
|000014a0| 74 20 3d 20 73 65 6c 66 | 2e 72 68 79 74 68 6d 4f |t = self|.rhythmO|
|000014b0| 62 6a 2e 6c 6f 6f 70 28 | 29 0d 0d 20 20 20 20 20 |bj.loop(|).. |
|000014c0| 20 20 20 20 20 20 20 69 | 66 20 6e 6f 74 52 65 73 | i|f notRes|
|000014d0| 74 20 3d 3d 20 30 3a 0d | 20 20 20 20 20 20 20 20 |t == 0:.| |
|000014e0| 20 20 20 20 20 20 20 73 | 65 74 5f 74 20 20 20 20 | s|et_t |
|000014f0| 20 3d 20 28 73 65 74 5f | 74 20 2b 20 72 68 79 74 | = (set_|t + rhyt|
|00001500| 68 6d 29 20 20 20 0d 20 | 20 20 20 20 20 20 20 20 |hm) . | |
|00001510| 20 20 20 20 20 20 63 75 | 72 72 65 6e 74 5f 74 20 | cu|rrent_t |
|00001520| 3d 20 28 63 75 72 72 65 | 6e 74 5f 74 20 2b 20 72 |= (curre|nt_t + r|
|00001530| 68 79 74 68 6d 29 0d 20 | 20 20 20 20 20 20 20 20 |hythm). | |
|00001540| 20 20 20 20 20 20 69 66 | 20 73 65 74 5f 74 20 3e | if| set_t >|
|00001550| 3d 20 74 5f 70 65 72 5f | 73 65 74 3a 0d 20 20 20 |= t_per_|set:. |
|00001560| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 62 | | b|
|00001570| 72 65 61 6b 0d 20 20 20 | 20 20 20 20 20 20 20 20 |reak. | |
|00001580| 20 20 20 20 65 6c 73 65 | 3a 0d 20 20 20 20 20 20 | else|:. |
|00001590| 20 20 20 20 20 20 20 20 | 20 20 20 20 63 6f 6e 74 | | cont|
|000015a0| 69 6e 75 65 0d 20 20 20 | 20 20 20 20 20 20 20 20 |inue. | |
|000015b0| 20 64 75 72 20 3d 20 72 | 68 79 74 68 6d 20 2b 20 | dur = r|hythm + |
|000015c0| 74 5f 6f 76 65 72 6c 61 | 70 0d 0d 20 20 20 20 20 |t_overla|p.. |
|000015d0| 20 20 20 20 20 20 20 23 | 20 63 68 6f 6f 73 65 20 | #| choose |
|000015e0| 41 4d 50 20 0d 20 20 20 | 20 20 20 20 20 20 20 20 |AMP . | |
|000015f0| 20 69 66 20 73 65 6c 66 | 2e 70 6d 74 72 4f 62 6a | if self|.pmtrObj|
|00001600| 44 69 63 74 5b 27 61 6d | 70 51 27 5d 2e 74 79 70 |Dict['am|pQ'].typ|
|00001610| 65 20 3d 3d 20 27 63 79 | 63 6c 69 63 47 65 6e 27 |e == 'cy|clicGen'|
|00001620| 3a 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |:. | |
|00001630| 20 61 6d 70 56 61 6c 75 | 65 20 3d 20 73 65 6c 66 | ampValu|e = self|
|00001640| 2e 70 6d 74 72 4f 62 6a | 44 69 63 74 5b 27 61 6d |.pmtrObj|Dict['am|
|00001650| 70 51 27 5d 2e 63 79 63 | 6c 69 63 47 65 6e 28 29 |pQ'].cyc|licGen()|
|00001660| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 23 20 6e |. | # n|
|00001670| 6f 20 73 61 6d 70 6c 65 | 53 65 6c 65 63 74 20 61 |o sample|Select a|
|00001680| 6c 6c 6f 77 65 64 20 68 | 65 72 65 0d 20 20 20 20 |llowed h|ere. |
|00001690| 20 20 20 20 20 20 20 20 | 65 6c 69 66 20 73 65 6c | |elif sel|
|000016a0| 66 2e 70 6d 74 72 4f 62 | 6a 44 69 63 74 5b 27 61 |f.pmtrOb|jDict['a|
|000016b0| 6d 70 51 27 5d 2e 74 79 | 70 65 20 3d 3d 20 27 63 |mpQ'].ty|pe == 'c|
|000016c0| 6f 6e 73 74 61 6e 74 27 | 3a 0d 20 20 20 20 20 20 |onstant'|:. |
|000016d0| 20 20 20 20 20 20 20 20 | 20 61 6d 70 56 61 6c 75 | | ampValu|
|000016e0| 65 20 3d 20 73 65 6c 66 | 2e 70 6d 74 72 4f 62 6a |e = self|.pmtrObj|
|000016f0| 44 69 63 74 5b 27 61 6d | 70 51 27 5d 2e 63 6f 6e |Dict['am|pQ'].con|
|00001700| 73 74 61 6e 74 28 29 0d | 20 20 20 20 20 20 20 20 |stant().| |
|00001710| 20 20 20 20 65 6c 69 66 | 20 73 65 6c 66 2e 70 6d | elif| self.pm|
|00001720| 74 72 4f 62 6a 44 69 63 | 74 5b 27 61 6d 70 51 27 |trObjDic|t['ampQ'|
|00001730| 5d 2e 74 79 70 65 20 3d | 3d 20 27 62 61 73 6b 65 |].type =|= 'baske|
|00001740| 74 47 65 6e 27 3a 0d 20 | 20 20 20 20 20 20 20 20 |tGen':. | |
|00001750| 20 20 20 20 20 20 61 6d | 70 56 61 6c 75 65 20 3d | am|pValue =|
|00001760| 20 73 65 6c 66 2e 70 6d | 74 72 4f 62 6a 44 69 63 | self.pm|trObjDic|
|00001770| 74 5b 27 61 6d 70 51 27 | 5d 2e 62 61 73 6b 65 74 |t['ampQ'|].basket|
|00001780| 47 65 6e 28 29 0d 20 20 | 20 20 20 20 20 20 20 20 |Gen(). | |
|00001790| 20 20 23 69 73 6f 6c 61 | 74 65 20 61 6d 70 20 6f | #isola|te amp o|
|000017a0| 66 20 64 65 73 69 67 6e | 61 74 65 64 20 70 63 20 |f design|ated pc |
|000017b0| 28 75 6e 74 72 61 6e 73 | 70 6f 73 65 64 29 2c 20 |(untrans|posed), |
|000017c0| 6d 75 73 74 20 62 65 20 | 61 20 63 79 63 6c 69 63 |must be |a cyclic|
|000017d0| 47 65 6e 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |Gen. | |
|000017e0| 69 66 20 28 70 63 20 3d | 3d 20 63 75 72 72 65 6e |if (pc =|= curren|
|000017f0| 74 5f 63 68 6f 72 64 5b | 30 5d 20 61 6e 64 20 73 |t_chord[|0] and s|
|00001800| 65 6c 66 2e 70 6d 74 72 | 4f 62 6a 44 69 63 74 5b |elf.pmtr|ObjDict[|
|00001810| 27 61 6d 70 51 27 5d 2e | 74 79 70 65 20 3d 3d 20 |'ampQ'].|type == |
|00001820| 27 63 79 63 6c 69 63 47 | 65 6e 27 20 61 6e 64 20 |'cyclicG|en' and |
|00001830| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001840| 73 65 6c 66 2e 72 68 79 | 74 68 6d 4f 62 6a 2e 74 |self.rhy|thmObj.t|
|00001850| 79 70 65 20 3d 3d 20 27 | 62 69 6e 61 72 79 41 63 |ype == '|binaryAc|
|00001860| 63 65 6e 74 27 29 3a 0d | 20 20 20 20 20 20 20 20 |cent'):.| |
|00001870| 20 20 20 20 20 20 20 61 | 6d 70 20 3d 20 73 65 6c | a|mp = sel|
|00001880| 66 2e 70 6d 74 72 4f 62 | 6a 44 69 63 74 5b 27 61 |f.pmtrOb|jDict['a|
|00001890| 6d 70 51 27 5d 2e 6d 61 | 78 20 2a 20 31 2e 30 32 |mpQ'].ma|x * 1.02|
|000018a0| 20 23 20 67 69 76 65 20 | 61 63 63 65 6e 74 20 74 | # give |accent t|
|000018b0| 6f 20 74 68 65 73 65 20 | 6e 6f 74 65 73 0d 20 20 |o these |notes. |
|000018c0| 20 20 20 20 20 20 20 20 | 20 20 65 6c 73 65 3a 0d | | else:.|
|000018d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 61 | | a|
|000018e0| 6d 70 20 3d 20 61 6d 70 | 56 61 6c 75 65 0d 0d 20 |mp = amp|Value.. |
|000018f0| 20 20 20 20 20 20 20 20 | 20 20 20 23 20 63 68 6f | | # cho|
|00001900| 6f 73 65 20 50 41 4e 0d | 20 20 20 20 20 20 20 20 |ose PAN.| |
|00001910| 20 20 20 20 69 66 20 73 | 65 6c 66 2e 70 6d 74 72 | if s|elf.pmtr|
|00001920| 4f 62 6a 44 69 63 74 5b | 27 70 61 6e 51 27 5d 2e |ObjDict[|'panQ'].|
|00001930| 74 79 70 65 20 3d 3d 20 | 27 63 79 63 6c 69 63 47 |type == |'cyclicG|
|00001940| 65 6e 27 3a 0d 20 20 20 | 20 20 20 20 20 20 20 20 |en':. | |
|00001950| 20 20 20 20 70 61 6e 20 | 3d 20 73 65 6c 66 2e 70 | pan |= self.p|
|00001960| 6d 74 72 4f 62 6a 44 69 | 63 74 5b 27 70 61 6e 51 |mtrObjDi|ct['panQ|
|00001970| 27 5d 2e 63 79 63 6c 69 | 63 47 65 6e 28 29 0d 20 |'].cycli|cGen(). |
|00001980| 20 20 20 20 20 20 20 20 | 20 20 20 23 20 6e 6f 20 | | # no |
|00001990| 73 61 6d 70 6c 65 53 65 | 6c 65 63 74 20 61 6c 6c |sampleSe|lect all|
|000019a0| 6f 77 65 64 20 68 65 72 | 65 0d 20 20 20 20 20 20 |owed her|e. |
|000019b0| 20 20 20 20 20 20 65 6c | 69 66 20 73 65 6c 66 2e | el|if self.|
|000019c0| 70 6d 74 72 4f 62 6a 44 | 69 63 74 5b 27 70 61 6e |pmtrObjD|ict['pan|
|000019d0| 51 27 5d 2e 74 79 70 65 | 20 3d 3d 20 27 63 6f 6e |Q'].type| == 'con|
|000019e0| 73 74 61 6e 74 27 3a 0d | 20 20 20 20 20 20 20 20 |stant':.| |
|000019f0| 20 20 20 20 20 20 20 70 | 61 6e 20 3d 20 73 65 6c | p|an = sel|
|00001a00| 66 2e 70 6d 74 72 4f 62 | 6a 44 69 63 74 5b 27 70 |f.pmtrOb|jDict['p|
|00001a10| 61 6e 51 27 5d 2e 63 6f | 6e 73 74 61 6e 74 28 29 |anQ'].co|nstant()|
|00001a20| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 65 6c 69 |. | eli|
|00001a30| 66 20 73 65 6c 66 2e 70 | 6d 74 72 4f 62 6a 44 69 |f self.p|mtrObjDi|
|00001a40| 63 74 5b 27 70 61 6e 51 | 27 5d 2e 74 79 70 65 20 |ct['panQ|'].type |
|00001a50| 3d 3d 20 27 62 61 73 6b | 65 74 47 65 6e 27 3a 0d |== 'bask|etGen':.|
|00001a60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 70 | | p|
|00001a70| 61 6e 20 3d 20 73 65 6c | 66 2e 70 6d 74 72 4f 62 |an = sel|f.pmtrOb|
|00001a80| 6a 44 69 63 74 5b 27 70 | 61 6e 51 27 5d 2e 62 61 |jDict['p|anQ'].ba|
|00001a90| 73 6b 65 74 47 65 6e 28 | 29 0d 0d 0d 20 20 20 20 |sketGen(|)... |
|00001aa0| 20 20 20 20 20 20 20 20 | 23 20 63 68 6f 6f 6f 73 | |# chooos|
|00001ab0| 65 20 41 55 58 20 76 61 | 6c 75 65 73 20 28 6f 6e |e AUX va|lues (on|
|00001ac0| 63 65 20 70 65 72 20 63 | 68 6f 72 64 29 0d 20 20 |ce per c|hord). |
|00001ad0| 20 20 20 20 20 20 20 20 | 20 20 61 75 78 69 6c 6c | | auxill|
|00001ae0| 61 72 79 20 20 3d 20 5b | 5d 0d 20 20 20 20 20 20 |ary = [|]. |
|00001af0| 20 20 20 20 20 20 66 6f | 72 20 69 20 69 6e 20 72 | fo|r i in r|
|00001b00| 61 6e 67 65 28 30 2c 73 | 65 6c 66 2e 61 75 78 4e |ange(0,s|elf.auxN|
|00001b10| 6f 29 3a 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |o):. | |
|00001b20| 20 20 20 69 66 20 73 65 | 6c 66 2e 70 6d 74 72 4f | if se|lf.pmtrO|
|00001b30| 62 6a 44 69 63 74 5b 28 | 27 61 75 78 51 25 69 27 |bjDict[(|'auxQ%i'|
|00001b40| 25 69 29 5d 2e 74 79 70 | 65 20 3d 3d 20 27 63 79 |%i)].typ|e == 'cy|
|00001b50| 63 6c 69 63 47 65 6e 27 | 3a 0d 20 20 20 20 20 20 |clicGen'|:. |
|00001b60| 20 20 20 20 20 20 20 20 | 20 20 20 20 61 75 78 56 | | auxV|
|00001b70| 61 6c 75 65 20 3d 20 73 | 65 6c 66 2e 70 6d 74 72 |alue = s|elf.pmtr|
|00001b80| 4f 62 6a 44 69 63 74 5b | 28 27 61 75 78 51 25 69 |ObjDict[|('auxQ%i|
|00001b90| 27 25 69 29 5d 2e 63 79 | 63 6c 69 63 47 65 6e 28 |'%i)].cy|clicGen(|
|00001ba0| 29 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |). | |
|00001bb0| 20 20 20 20 61 75 78 69 | 6c 6c 61 72 79 2e 61 70 | auxi|llary.ap|
|00001bc0| 70 65 6e 64 28 61 75 78 | 56 61 6c 75 65 29 0d 20 |pend(aux|Value). |
|00001bd0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 65 6c | | el|
|00001be0| 69 66 20 73 65 6c 66 2e | 70 6d 74 72 4f 62 6a 44 |if self.|pmtrObjD|
|00001bf0| 69 63 74 5b 28 27 61 75 | 78 51 25 69 27 25 69 29 |ict[('au|xQ%i'%i)|
|00001c00| 5d 2e 74 79 70 65 20 3d | 3d 20 27 73 61 6d 70 6c |].type =|= 'sampl|
|00001c10| 65 53 65 6c 65 63 74 27 | 3a 0d 20 20 20 20 20 20 |eSelect'|:. |
|00001c20| 20 20 20 20 20 20 20 20 | 20 20 20 20 61 75 78 56 | | auxV|
|00001c30| 61 6c 75 65 20 3d 20 73 | 65 6c 66 2e 70 6d 74 72 |alue = s|elf.pmtr|
|00001c40| 4f 62 6a 44 69 63 74 5b | 28 27 61 75 78 51 25 69 |ObjDict[|('auxQ%i|
|00001c50| 27 25 69 29 5d 2e 73 61 | 6d 70 6c 65 53 65 6c 65 |'%i)].sa|mpleSele|
|00001c60| 63 74 28 73 65 6c 66 2e | 66 69 6c 65 50 61 74 68 |ct(self.|filePath|
|00001c70| 53 53 44 52 29 0d 20 20 | 20 20 20 20 20 20 20 20 |SSDR). | |
|00001c80| 20 20 20 20 20 20 20 20 | 61 75 78 69 6c 6c 61 72 | |auxillar|
|00001c90| 79 2e 61 70 70 65 6e 64 | 28 61 75 78 56 61 6c 75 |y.append|(auxValu|
|00001ca0| 65 29 0d 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e). | |
|00001cb0| 20 20 65 6c 69 66 20 73 | 65 6c 66 2e 70 6d 74 72 | elif s|elf.pmtr|
|00001cc0| 4f 62 6a 44 69 63 74 5b | 28 27 61 75 78 51 25 69 |ObjDict[|('auxQ%i|
|00001cd0| 27 25 69 29 5d 2e 74 79 | 70 65 20 3d 3d 20 27 63 |'%i)].ty|pe == 'c|
|00001ce0| 6f 6e 73 74 61 6e 74 27 | 3a 0d 20 20 20 20 20 20 |onstant'|:. |
|00001cf0| 20 20 20 20 20 20 20 20 | 20 20 20 20 61 75 78 56 | | auxV|
|00001d00| 61 6c 75 65 20 3d 20 73 | 65 6c 66 2e 70 6d 74 72 |alue = s|elf.pmtr|
|00001d10| 4f 62 6a 44 69 63 74 5b | 28 27 61 75 78 51 25 69 |ObjDict[|('auxQ%i|
|00001d20| 27 25 69 29 5d 2e 63 6f | 6e 73 74 61 6e 74 28 29 |'%i)].co|nstant()|
|00001d30| 0d 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |. | |
|00001d40| 20 20 20 61 75 78 69 6c | 6c 61 72 79 2e 61 70 70 | auxil|lary.app|
|00001d50| 65 6e 64 28 61 75 78 56 | 61 6c 75 65 29 0d 0d 20 |end(auxV|alue).. |
|00001d60| 20 20 20 20 20 20 20 20 | 20 20 20 23 2d 2d 2d 2d | | #----|
|00001d70| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00001d80| 2d 2d 2d 2d 2d 2d 2d 2d | 0d 20 20 20 20 20 20 20 |--------|. |
|00001d90| 20 20 20 20 20 23 64 6f | 20 74 68 69 73 20 66 6f | #do| this fo|
|00001da0| 72 20 65 61 63 68 20 50 | 43 48 20 69 6e 20 70 63 |r each P|CH in pc|
|00001db0| 68 5f 63 68 6f 72 64 0d | 20 20 20 20 20 20 20 20 |h_chord.| |
|00001dc0| 20 20 20 20 66 6f 72 20 | 70 63 68 20 69 6e 20 70 | for |pch in p|
|00001dd0| 63 68 5f 63 68 6f 72 64 | 3a 0d 20 20 20 20 20 20 |ch_chord|:. |
|00001de0| 20 20 20 20 20 20 20 20 | 20 23 20 70 61 63 6b 20 | | # pack |
|00001df0| 73 63 6f 72 65 2c 20 6c | 61 73 74 20 65 6c 65 6d |score, l|ast elem|
|00001e00| 65 6e 74 20 61 6c 77 61 | 79 73 20 61 20 63 6f 6d |ent alwa|ys a com|
|00001e10| 6d 65 6e 74 0d 20 20 20 | 20 20 20 20 20 20 20 20 |ment. | |
|00001e20| 20 20 20 20 70 61 72 61 | 6d 65 74 65 72 73 20 3d | para|meters =|
|00001e30| 20 5b 69 6e 73 74 2c 20 | 63 75 72 72 65 6e 74 5f | [inst, |current_|
|00001e40| 74 2c 20 64 75 72 2c 20 | 61 6d 70 2c 20 70 63 68 |t, dur, |amp, pch|
|00001e50| 2c 20 70 61 6e 5d 0d 20 | 20 20 20 20 20 20 20 20 |, pan]. | |
|00001e60| 20 20 20 20 20 20 63 6f | 6d 6d 65 6e 74 20 20 20 | co|mment |
|00001e70| 20 3d 20 5b 28 70 63 2c | 20 63 75 72 72 65 6e 74 | = [(pc,| current|
|00001e80| 5f 74 72 61 6e 73 2c 20 | 73 65 74 5f 74 29 5d 0d |_trans, |set_t)].|
|00001e90| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 73 | | s|
|00001ea0| 65 6c 66 2e 63 73 53 63 | 6f 72 65 2e 61 70 70 65 |elf.csSc|ore.appe|
|00001eb0| 6e 64 28 70 61 72 61 6d | 65 74 65 72 73 20 2b 20 |nd(param|eters + |
|00001ec0| 61 75 78 69 6c 6c 61 72 | 79 20 2b 20 63 6f 6d 6d |auxillar|y + comm|
|00001ed0| 65 6e 74 29 20 20 20 0d | 20 20 20 20 20 20 20 20 |ent) .| |
|00001ee0| 20 20 20 20 0d 20 20 20 | 20 20 20 20 20 20 20 20 | . | |
|00001ef0| 20 20 20 20 23 20 54 45 | 58 54 20 6f 70 74 69 6f | # TE|XT optio|
|00001f00| 6e 73 20 50 61 72 65 6c | 6c 65 6c 20 74 72 61 6e |ns Parel|lel tran|
|00001f10| 73 70 6f 73 69 74 69 6f | 6e 20 0d 20 20 20 20 20 |spositio|n . |
|00001f20| 20 20 20 20 20 20 20 20 | 20 20 6f 66 66 73 65 74 | | offset|
|00001f30| 20 3d 20 30 0d 20 20 20 | 20 20 20 20 20 20 20 20 | = 0. | |
|00001f40| 20 20 20 20 66 6f 72 20 | 70 61 72 65 6c 6c 65 6c | for |parellel|
|00001f50| 5f 74 72 61 6e 73 20 69 | 6e 20 74 65 78 74 5f 6c |_trans i|n text_l|
|00001f60| 69 73 74 3a 0d 20 20 20 | 20 20 20 20 20 20 20 20 |ist:. | |
|00001f70| 20 20 20 20 20 20 20 63 | 75 72 72 65 6e 74 5f 74 | c|urrent_t|
|00001f80| 20 20 3d 20 63 75 72 72 | 65 6e 74 5f 74 20 2b 20 | = curr|ent_t + |
|00001f90| 74 65 78 74 5f 64 65 6c | 61 79 20 20 20 20 20 20 |text_del|ay |
|00001fa0| 20 20 20 23 6f 66 66 73 | 65 74 20 74 6f 20 61 76 | #offs|et to av|
|00001fb0| 6f 69 64 20 61 6d 70 20 | 70 72 6f 62 6c 65 6d 73 |oid amp |problems|
|00001fc0| 2c 20 63 6f 72 72 65 63 | 74 20 65 72 72 6f 72 20 |, correc|t error |
|00001fd0| 77 2f 20 6f 66 66 73 65 | 74 0d 20 20 20 20 20 20 |w/ offse|t. |
|00001fe0| 20 20 20 20 20 20 20 20 | 20 20 20 20 73 65 74 5f | | set_|
|00001ff0| 74 20 20 20 20 20 20 3d | 20 73 65 74 5f 74 20 20 |t =| set_t |
|00002000| 20 20 20 2b 20 74 65 78 | 74 5f 64 65 6c 61 79 0d | + tex|t_delay.|
|00002010| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002020| 20 20 6f 66 66 73 65 74 | 20 20 20 20 20 3d 20 6f | offset| = o|
|00002030| 66 66 73 65 74 20 20 20 | 20 2b 20 74 65 78 74 5f |ffset | + text_|
|00002040| 64 65 6c 61 79 0d 0d 20 | 20 20 20 20 20 20 20 20 |delay.. | |
|00002050| 20 20 20 20 20 20 20 20 | 20 74 65 78 74 5f 70 63 | | text_pc|
|00002060| 68 20 20 20 3d 20 74 72 | 61 6e 73 70 6f 73 65 50 |h = tr|ansposeP|
|00002070| 43 48 28 70 63 68 2c 20 | 70 61 72 65 6c 6c 65 6c |CH(pch, |parellel|
|00002080| 5f 74 72 61 6e 73 29 0d | 20 20 20 20 20 20 20 20 |_trans).| |
|00002090| 20 20 20 20 20 20 20 20 | 20 20 70 61 72 61 6d 65 | | parame|
|000020a0| 74 65 72 73 20 3d 20 5b | 69 6e 73 74 2c 20 63 75 |ters = [|inst, cu|
|000020b0| 72 72 65 6e 74 5f 74 2c | 20 64 75 72 2c 20 61 6d |rrent_t,| dur, am|
|000020c0| 70 2c 20 74 65 78 74 5f | 70 63 68 2c 20 70 61 6e |p, text_|pch, pan|
|000020d0| 5d 0d 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |]. | |
|000020e0| 20 20 20 20 63 6f 6d 6d | 65 6e 74 20 20 20 20 3d | comm|ent =|
|000020f0| 20 5b 28 70 63 2c 20 63 | 75 72 72 65 6e 74 5f 74 | [(pc, c|urrent_t|
|00002100| 72 61 6e 73 2c 20 73 65 | 74 5f 74 29 5d 0d 20 20 |rans, se|t_t)]. |
|00002110| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002120| 73 65 6c 66 2e 63 73 53 | 63 6f 72 65 2e 61 70 70 |self.csS|core.app|
|00002130| 65 6e 64 28 70 61 72 61 | 6d 65 74 65 72 73 20 2b |end(para|meters +|
|00002140| 20 61 75 78 69 6c 6c 61 | 72 79 20 2b 20 63 6f 6d | auxilla|ry + com|
|00002150| 6d 65 6e 74 29 20 20 20 | 0d 20 20 20 20 20 20 20 |ment) |. |
|00002160| 20 20 20 20 20 23 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | #--|--------|
|00002170| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002180| 2d 2d 0d 0d 20 20 20 20 | 20 20 20 20 20 20 20 20 |--.. | |
|00002190| 23 20 6d 6f 76 65 20 63 | 6c 6f 63 6b 73 20 66 6f |# move c|locks fo|
|000021a0| 72 77 61 72 64 20 62 79 | 20 72 68 79 74 68 6d 20 |rward by| rhythm |
|000021b0| 75 6e 69 74 0d 20 20 20 | 20 20 20 20 20 20 20 20 |unit. | |
|000021c0| 20 73 65 74 5f 74 20 20 | 20 20 20 3d 20 28 73 65 | set_t | = (se|
|000021d0| 74 5f 74 20 2b 20 72 68 | 79 74 68 6d 29 20 20 20 |t_t + rh|ythm) |
|000021e0| 20 20 2d 20 6f 66 66 73 | 65 74 0d 20 20 20 20 20 | - offs|et. |
|000021f0| 20 20 20 20 20 20 20 63 | 75 72 72 65 6e 74 5f 74 | c|urrent_t|
|00002200| 20 3d 20 28 63 75 72 72 | 65 6e 74 5f 74 20 2b 20 | = (curr|ent_t + |
|00002210| 72 68 79 74 68 6d 29 20 | 2d 20 6f 66 66 73 65 74 |rhythm) |- offset|
|00002220| 20 20 20 20 20 20 20 20 | 0d 20 20 20 20 20 20 20 | |. |
|00002230| 20 20 20 20 20 23 20 6d | 6f 76 65 20 74 6f 20 6e | # m|ove to n|
|00002240| 65 78 74 20 63 68 6f 72 | 64 20 69 66 20 74 5f 70 |ext chor|d if t_p|
|00002250| 65 72 5f 73 65 74 20 68 | 61 73 20 62 65 65 6e 20 |er_set h|as been |
|00002260| 72 65 61 63 68 65 64 0d | 20 20 20 20 20 20 20 20 |reached.| |
|00002270| 20 20 20 20 69 66 20 73 | 65 74 5f 74 20 3e 3d 20 | if s|et_t >= |
|00002280| 74 5f 70 65 72 5f 73 65 | 74 3a 0d 20 20 20 20 20 |t_per_se|t:. |
|00002290| 20 20 20 20 20 20 20 20 | 20 20 62 72 65 61 6b 0d | | break.|
|000022a0| 20 20 20 20 20 20 23 20 | 73 63 6f 72 65 20 69 73 | # |score is|
|000022b0| 20 6e 6f 20 77 69 6e 20 | 73 65 6c 66 2e 63 73 53 | no win |self.csS|
|000022c0| 63 6f 72 65 20 6c 69 73 | 74 0d 20 20 20 20 20 20 |core lis|t. |
|000022d0| 23 20 72 65 74 75 72 6e | 20 76 61 6c 75 65 20 74 |# return| value t|
|000022e0| 6f 20 63 68 65 63 6b 20 | 66 6f 72 20 65 72 72 6f |o check |for erro|
|000022f0| 72 73 20 20 20 0d 20 20 | 20 20 20 20 72 65 74 75 |rs . | retu|
|00002300| 72 6e 20 31 0d 0d 00 00 | 00 00 00 00 00 00 00 00 |rn 1....|........|
|00002310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002380| 00 00 01 00 00 00 01 00 | 00 00 00 00 00 00 00 1e |........|........|
|00002390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002400| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002460| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002470| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002480| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002490| 00 00 00 00 00 00 00 00 | 00 1c 00 1e ff ff 00 00 |........|........|
|000024a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000024f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+